package pres.lnk.learn.designpattern.f_adapter;

/**
 * @Author lnk
 * @Date 2018/2/6
 */
public class Mobile {
    public void charging(Voltage5 voltage5){
        if(voltage5.output5() == 5){
            System.out.println("电压正常，开始充电");
        }else if(voltage5.output5() > 5){
            System.out.println("电压过高，手机要爆炸了");
        }

    }
}
